﻿using UnityEngine;
using System.Collections;

// http://www.youtube.com/watch?v=TD11AzSQ0Ao

public class AIFollowTarget : MonoBehaviour {

	public Transform AITarget;
	public Transform AITarget2;


	// Use this for initialization
	void Start () {
	
	
	}
	
	// Update is called once per frame
	void Update () {
	    
		GetComponent<NavMeshAgent> ().destination = AITarget.position;

	}

		  
		  
	
}
